﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class ChiTietPhieuThueControl
    {
        private ChiTietPhieuThueDataAccess CTPhieuThueDA = new ChiTietPhieuThueDataAccess();

        public DataTable LayBangDanhSachPhong()
        {
            return CTPhieuThueDA.LayBangDanhSachPhong();
        }

        public void Insert(ref ChiTietPhieuThueInfo chiTietPhieuThuInfo)
        {
            CTPhieuThueDA.Insert(ref chiTietPhieuThuInfo);
        }

        public void Update(ChiTietPhieuThueInfo chiTietPhieuThuInfo)
        {
            CTPhieuThueDA.Update(chiTietPhieuThuInfo);
        }

        public void Delete(ChiTietPhieuThueInfo chiTietPhieuThuInfo)
        {
            CTPhieuThueDA.Delete(chiTietPhieuThuInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return CTPhieuThueDA.TaoMaTuDong(maGoc, batDau);
        }
    }
}
